<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/stylesite.css" medial="all" />
<link rel="stylesheet" type="text/css" href="../css/styleleft.css" medial="all" />
<link rel="stylesheet" type="text/css" href="../css/style.css" media="all"/>

	<script src="../js/jquery-1.8.2.min.js" ></script>
	<script src="../js/image.js" type="text/javascript"></script>
         <script src="../js/jsearch.js" type="text/javascript"></script>  
	<script type="text/javascript">
	function checkPass()
	{
		var pass= document.getElementById("txtpass").value;
		var passc =document.getElementById("txtconfim").value;
		if(pass!=passc)
		{
			document.getElementById("confim").innerHTML="<img src='images/error.png'>Mật khẩu phải giống nhau</img>";
			document.getElementById("txtconfim").value="";
		}
		else {	document.getElementById("confim").innerHTML="*";}
	}
</script>
	
<title>Đổi mật khẩu</title>
</head>

<body class="pagebody" onLoad="javascript:resetform()">
	<div id="wrapwebsite" >
				<?php 
				ob_start();
			include('../element/header.php');
			if(!isset($_SESSION['user']))
				{
				header ('location:/cfshop/home.php');
				}?>
			<div class="imagestop"></div>
		<div class="wrapmaincontent">
		<?php
		include('../element/leftside.php');
		?>
		<div class="center-leftmargin">
			<div class="register">
				<div class="moduletitle" ><h2> Đổi mật khẩu </h2></div>
				<div class="modulecontent">
				<div class="frmregister">
				<form action="c_user.php" method="post" id="frmregister">
				<input type="hidden" value="<?php echo $_SESSION['user'][0];?>" name="idchange"/>
					<div class="row">
					 Tên đăng nhập : &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_SESSION['user'][1];?>
					</div>
						<div class="row">
					<label for="txtpass"> Mặt khẩu mới :</label><input type="password" id="txtpass" name="passnew" size="30px"/>&nbsp;<span id="">*</span>
					</div>
						<div class="row">
					<label for="txtconfim"> Nhập lại mật khẩu mới :</label><input type="password" id="txtconfim" name="txtconfim" size="30px" onBlur="checkPass();"/>&nbsp;<span id="confim">*</span>
					</div>
						
					<div class="row" ><span id="test"></span></div>
					<div class="row-last" >
						<input type="submit" value="Save"  class="button" name="change_pass" />
 					</div>
					</form>
				</div>
				</div>
			</div>
		</div> 
		</div>
		<?php include('../element/footer.php'); ?>
</div>
</body>
</html>
